package com.atguigu.gmall.all.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class LoginController {
    //转发登录页面
    @GetMapping("/login.html")//前端二级域名后地址
    public String login(String originUrl, Model model){//地址后？传的加密后的参数
        model.addAttribute("originUrl",originUrl);
        return "login";//返回到templates内login.html
    }
}
